export interface IAnyObject {
  [key: string]: any;
}

export type IMethods = "GET" | "POST" | "PUT" | "DELETE";

export interface IRequestOptions {
  url: string;
  data?: IAnyObject;
  method?: IMethods;
}

// 泛型：在定义时不指定类型，而是在使用时指定类型
export interface IResponseData<T> {
  code: number;
  message: string;
  data: T;
  success: boolean;
}